<script type="text/javascript" charset="UTF-8" src="/runtime/_systemjs/artTemplate/artTemplate.js"></script><script type="text/javascript" charset="UTF-8" src="/runtime/_systemjs/artTemplate/artTemplate-plugin.js"></script>
<script type="text/javascript" charset="UTF-8" src="/runtime/_systemjs/areaSelect/areaSelect.js"></script>
<div class="breadcrumbs" id="breadcrumbs">
    <ul class="breadcrumb">
        <li>
            <i class="home-icon fa fa-home"></i>
            <a href="#">从业人员</a>
        </li>
        <li>
            <a href="#">从业人员管理</a>
        </li>
        <li class="active">添加从业人员</li>
    </ul>
</div>

<div class="content">
    <form action="<?php echo IUrl::creatUrl("/auxiliary/employeeAdd");?>" method="post" name="employee_add" enctype="multipart/form-data">
        <table class="table form-table">
            <colgroup>
                <col width="150px"/>
                <col/>
            </colgroup>
            <tr>
                <th>选择运营商：</th>
                <td>
                    <select class="form-control" name="operator_id" pattern="required" alt="请选择学校类型" style="width: 250px">
                        <option value='0'>请选择运营商</option>
                        <?php foreach($items=Api::run('getSellerListAll') as $key => $item){?>
                        <option value='<?php echo isset($item['id'])?$item['id']:"";?>'><?php echo isset($item['true_name'])?$item['true_name']:"";?></option>
                        <?php }?>
                    </select>
                    <p class="help-block">* 请输入学校类型，如小学、中学、大学等，不超过 50 个字符。</p>
                </td>
            </tr>
            <tr>
                <th>所属学校：</th>
                <td>
                    <input type="text" class='form-control' name="school" required>
                    <p class="help-block">* 请输入所属学校名称。</p>
                </td>
            </tr>
            <tr>
                <th>姓名：</th>
                <td>
                    <input type="text" class='form-control' name="name" required>
                    <p class="help-block">* 请输入从业人员姓名。</p>
                </td>
            </tr>
            <tr>
                <th>从业人员编号：</th>
                <td>
                    <input type="text" class='form-control' name="employee_number" required>
                    <p class="help-block">* 请输入唯一从业人员编号（不超过50字符）。</p>
                </td>
            </tr>
            <tr>
                <th>职务：</th>
                <td>
                    <input type="text" class='form-control' name="position">
                    <p class="help-block">请输入从业人员职务（可选）。</p>
                </td>
            </tr>
            <tr>
                <th>头像：</th>
                <td>
                    <input type="file" class='form-control' name="avatar" accept="image/*">
                    <p class="help-block">请上传从业人员头像（可选，支持JPG/PNG格式）。</p>
                </td>
            </tr>
            <tr>
                <th>简介：</th>
                <td>
                    <textarea class="form-control" name="introduction" rows="5"></textarea>
                    <p class="help-block">请输入从业人员简介（可选）。</p>
                </td>
            </tr>
            <tr>
                <th>状态：</th>
                <td>
                    <select class="form-control" name="status" style="width: 150px">
                        <option value="1" selected>在岗</option>
                        <option value="2">离岗</option>
                        <option value="3">返岗</option>
                        <option value="4">离职</option>
                    </select>
                    <p class="help-block">* 选择从业人员当前状态。</p>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <button class='btn btn-primary' type="submit">保存</button>
                </td>
            </tr>
        </table>
    </form>
</div>